/*
 * QueryUserInitInformationResponse.java
 * business
 *
 * Created by ChenTao on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.data.response;

import com.google.gson.annotations.SerializedName;
import com.yidiandao.business.data.bean.User;
import com.yidiandao.business.data.net.BaseResponse;

import java.util.List;

/** 完善用户信息页面-初始化的用户信息 */
public class QueryUserInitInformationResponse extends BaseResponse {

    @SerializedName("data")
    private Data data;

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data {

        @SerializedName("user_info")
        private User userInfo;

        @SerializedName("select_province")
        private int selectProvince;

        @SerializedName("select_city")
        private int selectCity;

        @SerializedName("rank_list")
        private List<UserType> userTypes;

        public List<UserType> getUserTypes() {
            return userTypes;
        }

        public void setUserTypes(List<UserType> userTypes) {
            this.userTypes = userTypes;
        }

        public User getUserInfo() {
            return userInfo;
        }

        public void setUserInfo(User userInfo) {
            this.userInfo = userInfo;
        }

        public int getSelectProvince() {
            return selectProvince;
        }

        public void setSelectProvince(int selectProvince) {
            this.selectProvince = selectProvince;
        }

        public int getSelectCity() {
            return selectCity;
        }

        public void setSelectCity(int selectCity) {
            this.selectCity = selectCity;
        }
    }

    public static class UserType {

        @SerializedName("rank_id")
        private int typeId;

        @SerializedName("rank_name")
        private String typeName;

        private boolean isSelected;

        public boolean isSelected() {
            return isSelected;
        }

        public void setSelected(boolean selected) {
            isSelected = selected;
        }

        public int getTypeId() {
            return typeId;
        }

        public void setTypeId(int typeId) {
            this.typeId = typeId;
        }

        public String getTypeName() {
            return typeName;
        }

        public void setTypeName(String typeName) {
            this.typeName = typeName;
        }
    }
}
